package site.jlopen.kuscia.model.job;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import lombok.Data;
import site.jlopen.kuscia.model.task.TaskStatusResponeVo;

@Data
public class JobStatusResponeVo {

	private String jobId;

	private String initiator;

	private String state;
	
	private List<TaskStatusResponeVo> tasks;
	
	private Map<String, String> taskMap = new HashMap<String, String>();
	
	public JobStatusResponeVo addTaskMap(String taskId, String state) {
		this.taskMap.put(taskId, state);
		return this;
	}
}
